import { ModuleWithProviders, NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { CountService } from './count.service';
import { CountComponent } from './count/count.component';



@NgModule({
  declarations: [CountComponent],
  imports: [
    CommonModule
  ],
  exports: [CountComponent],
  providers: []
})
export class CountModule {
  static forRoot(): ModuleWithProviders<CountModule> {
    return {
      ngModule: CountModule,
      providers: [CountService]
    }
  }
}
